﻿<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/Principal.Master" CodeBehind="Reporte_Consolidado.aspx.vb" Inherits="Cliente.Reporte_Consolidado" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    
    
    <table width="70%">
    <tr valign="top">
    <td style="height: 500px; width:100%" >
           
    <cc1:Accordion ID="Accordion1" runat="server" SelectedIndex="0"
    HeaderCssClass="accordionHeader"
    HeaderSelectedCssClass="accordionHeaderSelected"
    ContentCssClass="accordionContent"
    AutoSize="Fill"
    Height="490px"
    FadeTransitions="true"
    TransitionDuration="250"
    FramesPerSecond="40"
    RequireOpenedPane="false"
    SuppressHeaderPostbacks="true">
       <Panes>
       
             
           <cc1:AccordionPane  ID="AccordEmpleados" runat="server"  HeaderCssClass="accordionHeader" ContentCssClass="accordionContent">
                  
            <Header>REPORTE CONSOLIDADO</Header>
            <Content>
            
            <asp:Panel ID="PanelColaboradores" runat="server" DefaultButton="ImgBuscar">
            <table width="100%">
            <tr>
                 <td>
                 <asp:Label ID="LblLocal" runat="server" Text="Local:"></asp:Label>
                </td>
                <td>
                <asp:UpdatePanel ID="UPCboLocal" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                <asp:DropDownList ID="CboLocal" runat="server" Font-Size="Smaller" Width="100px"></asp:DropDownList>
                </ContentTemplate>
                </asp:UpdatePanel>
                </td>
                 
                <td>
                <asp:Label ID="LblFecha" runat="server" Text="Fecha">             
                </asp:Label>
                </td>
                
                <td>
            <asp:UpdatePanel ID="UPFecha" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
              <asp:TextBox ID="TxtFecha" runat="server" Width="70px" Font-Size="smaller"></asp:TextBox> 
                 <cc1:MaskedEditExtender ID="MaskedEditExtender3" runat="server" TargetControlID="TxtFecha" Mask="99/99/9999" MaskType="Date">
                 </cc1:MaskedEditExtender>
               <asp:ImageButton ID="BtnCalendar" runat="server" AlternateText="Calendario" ImageUrl= "Iconos/22/calendar.gif" onmouseover="this.src='Iconos/22/calendar1.gif';" onmouseout="this.src='Iconos/22/calendar.gif';" />
               <cc1:CalendarExtender ID="CalendarExtender3" runat="server" TargetControlID="TxtFecha" PopupButtonID="BtnCalendar" Format="dd/MM/yyyy">
               </cc1:CalendarExtender>
               </ContentTemplate>
            </asp:UpdatePanel>
            </td>
                
            </tr>
            <tr>
              <td colspan="7">
              &nbsp;
              </td>
              <td align="right" colspan="3">
                        
            <table>
                                   
                                  <tr>
                <td align="right">
                 <asp:UpdatePanel ID="UpdatePanelImgBuscar" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                       <asp:ImageButton ID="ImgBuscar" runat="server" AlternateText="Buscar" ImageUrl= "Iconos/25/kappfinder.gif" onmouseover="this.src='Iconos/25/kappfinder1.gif';" onmouseout="this.src='Iconos/25/kappfinder.gif';"/>&nbsp;
                        <asp:ImageButton ID="ImgLimpiar" runat="server" AlternateText="Limpiar" ImageUrl= "Iconos/25/Clear.png" onmouseover="this.src='Iconos/25/Clear1.png';" onmouseout="this.src='Iconos/25/Clear.png';"/>&nbsp;
                                               </ContentTemplate>
         </asp:UpdatePanel>
         </td>
         <td>
        <asp:ImageButton ID="ImgExcel" runat="server" AlternateText="Exportar" ImageUrl= "Iconos/25/Excel.png" onmouseover="this.src='Iconos/25/Excel1.png';" onmouseout="this.src='Iconos/25/Excel.png';"/>
                </td>
                </tr>
                     
                </table>
                
            
       </td>
            
                        </tr>
            </table>
            </asp:Panel>
           
           
            <table style="height:240px;vertical-align:top"  >
     <tr>
     <td valign="top">
                     
            
     <asp:UpdatePanel ID="UPGridReporteVentas" 
                             UpdateMode="Conditional"
                             runat="server">
                <ContentTemplate>        
         
        <asp:GridView ID="GridReporteVentas" runat="server" allowpaging="true" AllowSorting="true" CellPadding="4" ForeColor="#333333" GridLines="None" autogeneratecolumns="False" PageSize="10" EmptyDataText="No se encontraron registros">
        <FooterStyle BackColor="#71727F" Font-Bold="True" ForeColor="White" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <EditRowStyle BackColor="#999999" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <PagerStyle BackColor="#525463" ForeColor="White" HorizontalAlign="Center" />
        <HeaderStyle BackColor="#71727F" Font-Bold="True" ForeColor="White" />
        
        <columns>
            <asp:boundfield datafield="CodProducto"
            headertext="ID">
                <ItemStyle Width="30px" Font-Size="Smaller" />
            </asp:boundfield>
            <asp:boundfield datafield="Producto"
            headertext="Producto">
                <ItemStyle Width="120px" Font-Size="Smaller" HorizontalAlign="Left" />
            </asp:boundfield>
             <asp:boundfield datafield="Pollo"
            headertext="Pollo">
                <ItemStyle Width="30px" Font-Size="Smaller" />
            </asp:boundfield>
            <asp:boundfield datafield="Precio"
            headertext="Precio">
                <ItemStyle Width="30px" Font-Size="Smaller" HorizontalAlign="Right" />
            </asp:boundfield>
            <asp:boundfield datafield="Total"
            headertext="Total">
                <ItemStyle Width="40px" Font-Size="Smaller" HorizontalAlign="Right" />
            </asp:boundfield>
             
                  </columns>
         <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
          
      </asp:GridView> 
                    </ContentTemplate>
            </asp:UpdatePanel>
            
      </td>
      <td>
      <asp:UpdatePanel ID="UPDetallesConsolidado" runat="server" UpdateMode="Conditional">
      <ContentTemplate>
      <asp:Panel ID="panelDetalles" runat="server" Visible="false">
      
       <table>
            <tr>
      <td>
      Total de Pollos
      </td>
      <td>
          <asp:Label ID="LblPollos" runat="server" Text="" Font-Bold="true"></asp:Label>
      </td>
      </tr>
      <tr>
      <td>
      <br />
      </td>
      </tr>
      <tr>
      <td>
      Efectivo en bruto
      </td>
      <td align="right">
      <asp:Label ID="LblEfectivo" runat="server" Text="" Font-bold="true" ></asp:Label>
      </td>
      </tr>
      <tr>
      <td>
      Gastos
      </td>
      <td align="right">
      <asp:Label ID="LblGastos" runat="server" Text="" Font-bold="true"></asp:Label>
      </td>
      </tr>
      <tr>
      <td>
      Neto
      </td>
      <td align="right">
      <asp:Label ID="LblNeto" runat="server" Text="" Font-bold="true"></asp:Label>
      </td>
      </tr>
      </table>
      
      </asp:Panel>
      </ContentTemplate>
      </asp:UpdatePanel>
      
      </td>
      
      <td>
            <asp:UpdateProgress ID="UpdateProgress1" runat="server">
            
       <ProgressTemplate>
              <table width="100%" style="text-align:center">
       <tr>
       <td>
       <img src="Iconos/32/updateanim.gif" alt="" /> ... 
       </td>
       </tr>
       </table>  
         </ProgressTemplate>
    
       </asp:UpdateProgress>
      </td>
     </tr>
     </table>    
            
                                   
            </Content>
                  </cc1:AccordionPane>
                  </Panes> 
                  </cc1:Accordion> 
                  </td> 
                  </tr> 
                  </table> 
    
 </asp:Content>
